<template>
	<view class="content">
		<view class="bg" :style="{'background': 'url('+bg+')','background-size':size}"></view>
		<view class="info">
			<view class="box">
				<view class="title-box">
					提现规则（说明）
				</view>
				<view class="content">
					<rich-text :nodes="htmlNodes"></rich-text>
				</view>
				<view class="btn" @tap="back">
					我已了解
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	let App = getApp();
	export default {
		data(){
			return{
				htmlNodes:'',
				admin_id:'',
				bg:'http://yunzhidun.oss-cn-beijing.aliyuncs.com/uploads/20210802/d1391641ffa5d6d918c7bc21d59e0119.png',
				size:"100% 100%"
			}
		},
		onLoad(options) {
			this.admin_id = options.admin_id
			this.getRule();
		},
			
		methods:{
			back(){
				uni.navigateBack()
			},
			getRule(){
				uni.showLoading({
					title:"加载中"
				})
				this.$api.interfaceApi('getRule')({
					'admin_id':App.globalData.sys,
					'index':7
				}).then(res=>{
					if(res.code == 200){
						console.log(res.data)
						this.htmlNodes = res.data.content
						this.bg = res.data.bg
					}
					uni.hideLoading()
				})
			}
		}
	}
	
</script>

<style lang="less" scoped>
	.content{
		
		.bg{
			width: 750rpx;
			height: 400rpx;
			/* background: url(http://yunzhidun.oss-cn-beijing.aliyuncs.com/uploads/20210730/d1391641ffa5d6d918c7bc21d59e0119.png);
			background-size: 100% 100%; */
			
			.title{
				text-align: center;
				padding-top: 110rpx;
			}
			
		}
		
		
		.info{
			padding:0 30rpx;
			.box{
				
				background-color: #FFFFFF;
				margin-top: -200rpx;
				border-radius: 20rpx;
				padding: 20rpx 50rpx;
				
				.title-box{
					text-align: center;
				}
				
				.content{
					font-size: 26rpx;
					margin-top: 20rpx;
					view{
						margin-top: 20rpx;
					}
					.title{
						font-weight: 600;
					}
				}
				
				.btn{
					padding: 10rpx;
					border-radius: 50rpx;
					color: #FFFFFF;
					text-align: center;
					margin-top: 30rpx;
					background-color: #00bc3c;
				}
			}
		}
		
		
		
	}
</style>
